﻿using Mysoft.Map.Extensions.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mysoft.Test.Entity
{
    [DataEntity(Alias = "myUser")]
    [Serializable]
    public partial class User : BaseEntity
    {
        [DataColumn(IsNullable = true, Alias = "a_g_e")]
        public int Age { get; set; }
        [DataColumn(PrimaryKey = true)]
        public Guid UserGUID { get; set; }
        [DataColumn(IsNullable = true)]
        public string UserCode { get; set; }
        [DataColumn(IsNullable = true)]
        public string UserName { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? BUGUID { get; set; }
        [DataColumn(IsNullable = true)]
        public string PhotoUrl { get; set; }
        [DataColumn(IsNullable = true)]
        public string JobTitle { get; set; }
        [DataColumn(IsNullable = true,Alias="e_mail")]
        public string Email { get; set; }
        [DataColumn(IsNullable = true)]
        public string OfficePhone { get; set; }
        [DataColumn(IsNullable = true)]
        public string MobilePhone { get; set; }
        [DataColumn(IsNullable = true)]
        public string HomePhone { get; set; }
        [DataColumn(IsNullable = true)]
        public string ADAccount { get; set; }
        [DataColumn(IsNullable = true)]
        public DateTime? CreatedOn { get; set; }
        [DataColumn(IsNullable = true)]
        public string ModifiedOn { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? CreatedBy { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? ModifiedBy { get; set; }
        [DataColumn(IsNullable = true)]
        public bool? IsDisabeld { get; set; }
        [DataColumn(IsNullable = true)]
        public string DisabledReason { get; set; }
        [DataColumn(IsNullable = true)]
        public string Comments { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? ParentGUID { get; set; }
        [DataColumn(IsNullable = true)]
        public string Password { get; set; }
        [DataColumn(IsNullable = true)]
        public bool? IsAdmin { get; set; }
        [DataColumn(IsNullable = true)]
        public bool? IsSaler { get; set; }
        [DataColumn(IsNullable = true)]
        public string JobNumber { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? DepartmentGUID { get; set; }
        [DataColumn(IsNullable = true)]
        public string UserProject { get; set; }
        [DataColumn(IsNullable = true)]
        public bool? IsAdvanceUser { get; set; }
        [DataColumn(IsNullable = true)]
        public Guid? DefaultStation { get; set; }
        [DataColumn]
        public byte UserKind { get; set; }
        [DataColumn(IsNullable = true)]
        public DateTime? PSWModifyTime { get; set; }
        [DataColumn(IsNullable = true)]
        public byte? IsUserChangePWD { get; set; }
        [DataColumn(IsNullable = true)]
        public byte? IsLocked { get; set; }
        [DataColumn(IsNullable = true)]
        public string QzPwd { get; set; }
        [DataColumn(IsNullable = true)]
        public DateTime? QzPswChgDate { get; set; }
        [DataColumn(IsNullable = true)]
        public byte? IsUserChgQzPwd { get; set; }
        [DataColumn(IsNullable = true)]
        public byte? IsMobileUser { get; set; }
        [DataColumn(IsNullable = true)]
        public string Signguid { get; set; }
        [DataColumn(IsNullable = true)]
        public DateTime? LockTime { get; set; }
        [DataColumn]
        public bool IsHideUserKindTip { get; set; }
    }
}
